<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/core" prefix="c"%>		
<table width="99%" align="center"  border="0">
	<tr>
		<td width="100%" align="center">
			<table width="381" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
		    	<tr>
		      		<td colspan="6" align="center" class="titulocolumna"><c:out value="${year}" />.<fmt:formatNumber maxIntegerDigits="2" minIntegerDigits="2" pattern="##" value="${month}"></fmt:formatNumber></td>
		      	</tr>
				<tr>
					<td colspan="6" align="center" class="titulocolumna"><bean:message key="label.breadcrum.instruction.forecast.by.product"/></td>
				</tr>
				<tr>
					<td class="titulocolumna" align="center" width="16%"><bean:message key="label.instructionsforecast.product"/></td>
					<td class="titulocolumna" align="center" width="17%"><bean:message key="label.instructionsforecast.quantity"/></td>
					<td class="titulocolumna" align="center" width="20%"><bean:message key="label.instructionsforecast.quantity.corn"/></td>
					<td class="titulocolumna" align="center" colspan="2"><bean:message key="label.instructionsforecast.futures"/></td>
					<td class="titulocolumna" align="center" width="17%" ><bean:message key="label.instructionsforecast.current"/></td>
				</tr>
				<c:forEach items="${instructionsForecatsViews}" var="detail" varStatus="loop">
					<tr <c:if test="${(loop.index%2)==0}"> class="columnadatoPar"</c:if> <c:if test="${(loop.index%2)!=0}">class="columnadatoNon"</c:if>>
					<td align="center">			
						<c:out value="${detail.itemId}" />
					</td>
					<td  align="right">
						<c:out value="${detail.contracted}" />
					</td>
					<td  align="right">
						<c:out value="${detail.cornContracted}" />
					</td>
					<td width="10%" align="right">
						<c:out value="${detail.futuresFloored}" />
					</td>
					<td width="14%"  align="right">
						(<c:out value="${detail.futures}" />)
					</td>
					<td  align="right">
						<c:if test="${detail.forecastAdded==1}" ><c:out value="${detail.actual}" /></c:if>
					</td>
					</tr>
				</c:forEach>
		    </table>
		</td>
	</tr>
</table>
<br/>
<table>
	<tr>
		<td colspan="10" align="center" class="columnadatoPar">
			<html:button styleClass="boton" property="backButton" onclick="location.href = 'resumeInstructionPurchaseDetail.do'"><bean:message key="label.common.back" /></html:button>
		</td>
	</tr>
</table>